package com.yuyou.fn.educational.service;


import com.yuyou.fn.educational.entity.CourseClass;
import com.yuyou.fn.educational.entity.Student;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/9/5.
 */
public interface IRegRuleService {



   @ApiModel
   class Result {

      @ApiModelProperty("200:OK ; 400:在线测评; 401:线下测评 ; 500:未开放报名 ; 600:没有资格报名")
      private Integer code ;

      @ApiModelProperty("提示")
      private String message ;

      public Result(Integer code, String message) {
         this.code = code;
         this.message = message;
      }

      public Integer getCode() {
         return code;
      }

      public void setCode(Integer code) {
         this.code = code;
      }

      public String getMessage() {
         return message;
      }

      public void setMessage(String message) {
         this.message = message;
      }
   }

   Map<Long,Result> regRule(Student student, List<CourseClass> courseClasses , int regFrom );

   Result checkRegEnable(Student student, CourseClass courseClass, boolean isOnline);

   Result checkNeedTest(Student student, CourseClass courseClass, boolean isOnline);



}
